package SwingView;

import javax.swing.*;

import java.awt.*;

public class CmsContentPanelModel extends JPanel  {

	public CmsContentPanelModel(){
		setOpaque(false);
		setForeground(Color.WHITE);
		setBorder(BorderFactory.createEmptyBorder(3, 10, 8, 10));
		setLayout(new FlowLayout(FlowLayout.CENTER));
	}
	
	//---------------------------------------------------------
	//METHOD: paintComponent
	// - Paint the white rounded rectangle on the background
	//---------------------------------------------------------	
	@Override
	protected void paintComponent(Graphics g){
		super.paintComponent(g);
		g.fillRoundRect(8, 0, this.getWidth() - 16, this.getHeight() - 8, 10, 10);
	}	
}
